/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-12-30 15:29:48
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-06-03 10:51:15
 * @FilePath: \cxl-driving-training\src\views\channel\list\config.ts
 */
export const tableConfig = {
    headerOperation: [
        {
            type: 'create',
            visible: true,
            permission: ['POST:/api/system/channel/manage/add'],
            className: '',
            name: '新增',
            button: 'button',
            radioGroup: []
        }
    ],
    search: [
        {
            key: 'channelType',
            type: 'select',
            name: '渠道名称',
            modelValue: '',
            options: []
        },
        {
            key: 'status',
            type: 'select',
            name: '渠道状态',
            modelValue: '',
            options: []
        }
    ],
    permission: ['GET:/api/system/channel/manage/getPageList'],
    table: {
        operationWidth: '130px',
        operation: [
            {
                type: 'edit',
                visible: true,
                permission: ['POST:/api/system/channel/manage/edit'],
                className: '',
                name: '编辑'
            },
            {
                type: 'delete',
                visible: { property: 'status', condition: '==', value: false },
                permission: ['POST:/api/system/channel/manage/delete'],
                className: 'delete',
                name: '删除'
            }
        ],
        propName: {
            name: '渠道名称',
            type: '投放类型',
            time: '投放期限',
            channelAddress: '渠道地址',
            status: '状态',
            todayUsersNum: '今日新增人数',
            totalUsersNum: '累计人数',
            createBy: '操作人',
            updateTime: '更新时间',
            remark: '备注'
        },
        showSummary: false,
        selection: false,
        index: false,
        isDialog: false,
        summaryArray: [],
        summaryType: '',
        sortable: [],
        switch: {
            disabled: false,
            permission: ['POST:/api/system/channel/manage/updateDisable'],
            tooltip: {
                visible: false,
                content: ''
            }
        }
    }
}
